package cc.vv.btpartyjob.homepage.delegate

import android.widget.TextView
import cc.vv.baselibrary.view.BaseTopBarView
import cc.vv.baselibrary.view.BtWebView
import cc.vv.btpartyjob.homepage.R
import cc.vv.mvp.delegate.BaseAppDelegate

/**
 * 代办公文详情托管类
 * Created by Chen.qi on 2018/10/24.
 */
class DaiBanDetailActivityDelegate : BaseAppDelegate() {

    override fun initWidget() {
    }

    override fun initLayoutRes(): Int {
        return R.layout.activity_daiban_gongwen_details
    }


    /**设置标题右边按钮点击事件*/
    fun setTitleBackBtnOnClick(event: BaseTopBarView.EventInterface) {
        val titleBar = getView<BaseTopBarView>(R.id.btv_adGD_top_bar)
        titleBar?.setEventInterface(event)
    }

    /**设置标题右边按钮点击事件*/
    fun setTitleBar(title: String) {
        val titleBar = getView<BaseTopBarView>(R.id.btv_adGD_top_bar)
        titleBar?.setTitle(title)
    }

    /**
     * 设置标题
     */
    fun setTitle(title: String?) {
        val titleView = getView<TextView>(R.id.tv_adGD_title)
        titleView?.text = title
    }

    fun setTime(time: String?) {
        val timeView = getView<TextView>(R.id.tv_adGD_time)
        timeView?.text = time
    }

    fun setName(name: String?) {
        val stView = getView<TextView>(R.id.tv_adGD_name)
        stView?.text = name
    }

    fun setZuZhiWeiZhi(str: String?) {
        val stView = getView<TextView>(R.id.tv_adGD_weizhi)
        stView?.text = str
    }

    fun setContent(content: String?) {
        val timeView = getView<TextView>(R.id.tv_adGD_content)
        timeView?.text = content
    }


}